package com.entity;

import com.sun.javafx.sg.prism.web.NGWebView;

import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author liujun
 * @date 2023年11月15日11:55
 */

public class CssItem {
    private String item;
    private Collection<String> values;

    public CssItem() {
    }

    public CssItem(String item, Collection<String> values) {
        this.item = item;
        this.values = values;
    }

    public CssItem(String item, String value) {
        this.item = item;

        Set<String> cssValues = new LinkedHashSet<>();
        cssValues.add(value);
        this.values = cssValues;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public Collection<String> getValues() {
        return values;
    }

    public void setValues(Collection<String> values) {
        this.values = values;
    }

    @Override
    public String toString() {
        return "CssItem{" +
                "item='" + item + '\'' +
                ", value='" + values + '\'' +
                '}';
    }
}
